using System.Collections;
using System.Collections.Generic;
using QF.Tetris.Audio;
using UnityEngine;

namespace QF.Tetris
{
    public class App : MonoBehaviour,ISingleton
    {
        public static QFrameworkContainer Container
        {
            get { return App.mApp.mContainer; }
        }

        static App mApp
        {
            get { return MonoSingletonProperty<App>.Instance; }
        }

        private QFrameworkContainer mContainer { get; set; }

        public void OnSingletonInit()
        {
            mContainer = new QFrameworkContainer();

            mContainer.RegisterInstance<IQFrameworkContainer>(mContainer);
            
        }
    }
}